import requests
import re


url = r'http://172.16.22.104:8080/'
resp = requests.get(url)
patt = r'<title>(.*?)</title>'
title = re.findall(patt, resp.text)
print(title)

url = r'http://172.16.22.104:8080/bsams/front/vericode.do'
resp = requests.get(url)
patt = r'<title>(.*?)</title>'
title = re.findall(patt, resp.text)
print(title)

url = r'http://172.16.22.104:8080/bsams/front/login.do'
data={'taskId':'1','loginName':'test08','password':'123456','vericode':'shtd'}
resp=requests.post(url,data=data)
patt = r'<title>(.*?)</title>'
title = re.findall(patt, resp.text)
print(title)

url = r'http://172.16.22.104:8080/bsams/front/asset/asset_list.do'
cookies = {'JSESSIONID': '7B0701091849E77FD39DF0ACD514D91A'}
data={'title':'01'}
resp=requests.post(url,data=data,cookies=cookies)
patt = r'<title>(.*?)</title>'
title = re.findall(patt, resp.text)
print(title)